import 'package:flutter/material.dart';

import 'index_state.dart';

class IndexProvider extends ChangeNotifier {
  final state = IndexState();

  ///初始化数据
  void initData() {

  }

  updateTabIndex(int index) {
    if (state.tabIndex == index) return;
    state.tabIndex = index;
    if (hasListeners) {
      notifyListeners();
    }
  }
}
